package com.ruoyi.event.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.event.mapper.EventAttendListMapper;
import com.ruoyi.event.domain.EventAttendList;
import com.ruoyi.event.service.IEventAttendListService;

/**
 * 参加的活动列Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-09-26
 */
@Service
public class EventAttendListServiceImpl implements IEventAttendListService 
{
    @Autowired
    private EventAttendListMapper eventAttendListMapper;

    /**
     * 查询参加的活动列
     * 
     * @param id 参加的活动列主键
     * @return 参加的活动列
     */
    @Override
    public EventAttendList selectEventAttendListById(Long id)
    {
        return eventAttendListMapper.selectEventAttendListById(id);
    }

    /**
     * 查询参加的活动列列表
     * 
     * @param eventAttendList 参加的活动列
     * @return 参加的活动列
     */
    @Override
    public List<EventAttendList> selectEventAttendListList(EventAttendList eventAttendList)
    {
        return eventAttendListMapper.selectEventAttendListList(eventAttendList);
    }

    /**
     * 新增参加的活动列
     * 
     * @param eventAttendList 参加的活动列
     * @return 结果
     */
    @Override
    public int insertEventAttendList(EventAttendList eventAttendList)
    {
        return eventAttendListMapper.insertEventAttendList(eventAttendList);
    }

    /**
     * 修改参加的活动列
     * 
     * @param eventAttendList 参加的活动列
     * @return 结果
     */
    @Override
    public int updateEventAttendList(EventAttendList eventAttendList)
    {
        return eventAttendListMapper.updateEventAttendList(eventAttendList);
    }

    /**
     * 批量删除参加的活动列
     * 
     * @param ids 需要删除的参加的活动列主键
     * @return 结果
     */
    @Override
    public int deleteEventAttendListByIds(Long[] ids)
    {
        return eventAttendListMapper.deleteEventAttendListByIds(ids);
    }

    /**
     * 删除参加的活动列信息
     * 
     * @param id 参加的活动列主键
     * @return 结果
     */
    @Override
    public int deleteEventAttendListById(Long id)
    {
        return eventAttendListMapper.deleteEventAttendListById(id);
    }
}
